package na.learn.logging.sample;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.Priority;

public class SampleLoggingTest {

	private static org.apache.log4j.Logger log = Logger
			.getLogger("CUSTOMLOGGER");

	public static void main(String[] args) {
		LoggerManager logManager = new LoggerManager();
		
		
		log.info(log.getName());
		log.trace("Trace");
		log.debug("Debug");
		log.info("Info");
		log.warn("Warn");
		log.error("Error");
		log.fatal("Fatal");
		
		System.out.println(log.getLevel().toInt() == Priority.INFO_INT);
		//while(log.getLevel().toInt() == Priority.INFO_INT);
		System.out.println("Got it!!!!!!!!!!!!!!!!!!!!!!!!!!!");

	}

}
